import axios from 'axios'

import { IWaybillNumberRouteInfo } from '../interface'
import './__mock__'

/** 转单号路由 */
export const apiGetWaybillNumberRouteInfo = async (waybillNo: string): Promise<IWaybillNumberRouteInfo[]> => {
  return axios
    .post(`/tmsapi/waybill_record/getWaybillNumberRouteInfo`, { waybillNo })
    .then(res => res.$data?.waybillNumberRouteInfoList || [])
}
